<div class="row">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'dictionary-_form-form',
    'enableAjaxValidation'=>true,
    'enableClientValidation'=>true,
    'clientOptions'=>array(  
        'validateOnSubmit'=>true,  
     ),
)); ?>

<table class="table table-bordered table-hover definewidth m10">
    <tbody>
    	<tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($model,'table_name'); ?>
            </td>
            <td>
                <?php echo $form->textField($model,'table_name',array('class'=>'txt pull-left')); ?>
                <?php echo $form->error($model,'table_name'); ?>
            </td>            
	    </tr>
   	    <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($model,'code'); ?>
            </td>
            <td>
                <?php echo $form->textField($model,'code',array('class'=>'txt pull-left')); ?>
                <?php echo $form->error($model,'code'); ?> 
            </td>            
	    </tr>
   	    <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($model,'name'); ?>
            </td>
            <td>
                <?php echo $form->textField($model,'name',array('class'=>'txt pull-left')); ?>
                <?php echo $form->error($model,'name'); ?>
            </td>            
	    </tr>
        <?php if($model->isNewRecord){?>
	    <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($model,'isedit'); ?>
            </td>
            <td>
                <?php echo $form->radioButtonList($model,'isedit',array('否','是'),array('separator'=>'&nbsp;')); ?>
                <?php echo $form->error($model,'isedit'); ?>
            </td>
	    </tr>
	    <?php }?>
        <tr>
            <td width="10%" class="tableleft">
                <?php echo $form->labelEx($model,'sort'); ?>
            </td>
            <td>
                <?php echo $form->textField($model,'sort',array('class'=>'txt pull-left')); ?>
                <?php echo $form->error($model,'sort'); ?>
            </td>            
	    </tr>
        <tr>
            <td width="10%" class="tableleft"></td>
            <td>
                <?php echo CHtml::submitButton('保存',array('class'=>'button button-primary'));?>
                <?php echo CHtml::link('返回列表',$this->createUrl('dictionary/index'),array('class'=>'button button-success'));?>
            </td>            
        </tr>
   <tbody>
</table>
<?php $this->endWidget(); ?>
</div>
